// 这里是后台首页的路由表
import lazyLoad from "@/hooks/lazyLoad";
import React from "react";
import Layout from "@/layout/layout";

const Home = [
  {
    element:<Layout/>, // 加载首页布局组件的
    children:[
      // {
      //   path: '/sys/home', // 自定义路由路径
      //   element:lazyLoad(React.lazy(()=>import('@/views/home/modules/list/list'))),
      // },
      {
        path: '/sys/user/list', // 自定义路由路径
        element:lazyLoad(React.lazy(()=>import('@/views/user/list'))),
      },
      {
        path: '/sys/user/add', // 自定义路由路径
        element:lazyLoad(React.lazy(()=>import('@/views/home/modules/add/add'))),
      }
    ]
  }
 
]


export default Home;